package _32define;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class HomeWork3 {
    public static void main(String[] args) {
        List<Integer> redBalls=new ArrayList<>();
        List<Integer> blueBalls=new ArrayList<>();
        Random random=new Random();
        while (redBalls.size()<6){
            int a=random.nextInt(33)+1;
            redBalls.add(a);
        }
        System.out.println("红色球号"+redBalls);
        int b=random.nextInt(16)+1;
        blueBalls.add(b);
        System.out.println("蓝色球号"+blueBalls);
        List<Integer> allBalls=blueBalls;
        allBalls.addAll(0,redBalls);

        System.out.println("双色球号"+allBalls);

    }
}
